package com.hn.service.Impl;

import com.hn.dao.BanjiDao;
import com.hn.pojo.Banji;
import com.hn.service.BanjiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @作者 : wangchangdian
 * @创建时间 : 2019/3/27 - 10:06
 */
@Service("banjiService")
public class BanjiServiceImpl implements BanjiService {
    @Resource
    BanjiDao banjiDao;

    //创建班级
    @Override
    public void addBanji(Banji banji) {
        banjiDao.addBanji(banji);

    }

    //查询班级表所有内容
    public List<Banji> findAllbanji(){
        return banjiDao.findAllbanji();
    }
}
